﻿
namespace Pisces
{
    /**
     * 抽象的对象基类
     * 保证资源加载完成后，再调用awake
     * created by wangqiang
    **/
    public abstract class AbstractEntity : InterfaceEntityLiftcycle
    {
        protected int instanceID;

        public int InstanceID
        {
            get => instanceID;
            set => instanceID = value;
        }

        public virtual void onInit()
        {
        }

        public virtual void onLoaded()
        {
        }

        public virtual void onAwake()
        {
        }

        public virtual void onUpdate(float deltaTime)
        {
        }

        public virtual void onDestroy()
        {
        }
    }
}